import Vue from "vue";
import App from "./App.vue";
import router from "./router";

Vue.config.productionTip = false;

import { Loading, MessageBox, Alert, Notification, Message } from "element-ui";

//引入css reset
import 'normalize.css/normalize.css';

import VueLazyLoad from 'vue-lazyload';
import VueContextMenu from "vue-contextmenu";

//设置懒加载图片
Vue.use(VueLazyLoad, {
  loading: ''
});

Vue.use(VueContextMenu);

Vue.prototype.$loading = Loading.service;
Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$alert = MessageBox.alert;
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$prompt = MessageBox.prompt;
Vue.prototype.$notify = Notification;
Vue.prototype.$message = Message;

new Vue({
  router,
  render: h => h(App)
}).$mount("#app");
